package com.shuyuwl.core.exception;


import com.shuyuwl.core.enums.ResultEnum;
import lombok.Getter;

/**
 *
 * @Author ZChao
 * @Date 2019/9/27
 **/
@Getter
public class SymServiceException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private Integer errorCode;

    public SymServiceException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public SymServiceException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.errorCode = resultEnum.getCode();
    }
}
